package com.qzdsoft.erpcloud.vo.sys;

import com.qzdsoft.erpcloud.domain.sys.SysRole;
import com.qzdsoft.vo.sys.SysRoleStatus;

public class SysRoleInfo extends SysRole {
	
	private String statusName;
	
	private String companyName;

	public String getStatusName() {
		switch( super.getStatus().toString()) {
		case SysRoleStatus.USERING_CODE:
			this.statusName = SysRoleStatus.USERING.getValue();
			break;
		case SysRoleStatus.FREE_CODE:
			this.statusName = SysRoleStatus.FREE.getValue();
			break;
		case SysRoleStatus.DEL_CODE:
			this.statusName = SysRoleStatus.DEL.getValue();
		}
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	
}
